var names = [
	{ old: "Management Score",						 	new: "Overall Management Score",              		criterialevel2name: "Overall ESG Risk Rating"},
	{ old: "Exposure Score",						 	new: "Overall Exposure Score",                		criterialevel2name: "Overall ESG Risk Rating"},
	{ old: "Managed Risk",						     	new: "Overall Managed Risk Score",            		criterialevel2name: "Overall ESG Risk Rating"},
    { old: "Corporate Governance - ESG Risk Rating", 	new: "Corporate Governance-Risk Rating",      		criterialevel2name: "Corporate Governance"   },
	{ old: "Corporate Governance-Managed Risk",      	new: "Corporate Governance-Managed Risk Score", 	criterialevel2name: "Corporate Governance" 	 },
	{ old: "Corporate Governance-ESG Risk Category",   	new: "Corporate Governance-Risk Category", 			criterialevel2name: "Corporate Governance" 	 },
	{ old: "ESG Risk Rating",						 	new: "Risk Rating",							   		criterialevel2name: "Material E&S Issues"    },
	{ old: "Managed Risk",						     	new: "Managed Risk Score", 							criterialevel2name: "Material E&S Issues" 	 },
	{ old: "ESG Risk Category",						    new: "Risk Category", 							    criterialevel2name: "Material E&S Issues" 	 },
	];

names.forEach(function (names) {
        var criteriaLevel2Id =db.CriteriaLevel2.findOne({Name: names.criterialevel2name,  ShortName : "RiskRatings" });
	if(criteriaLevel2Id!= null)
            {
                db.CriteriaLevel3.update({Name: names.old, CriteriaLevel2Id: criteriaLevel2Id._id},{$set:{Name:names.new, ShortName:names.new}}, { multi: true });
            }
    });